package com.sandwich.admin.apibean;

import com.sandwich.admin.domain.CommentEntity;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class CommentInfo {
    private long pk;
    private long parentPk;
    private String comment;
    private long createdAt;
    private long contentSummaryPk;


    public CommentInfo() {
    }

    public CommentInfo(CommentEntity e) {
        this.pk = e.getPk();
        this.parentPk = e.getParentPk();
        this.comment = e.getComment();
        this.contentSummaryPk = e.getContentSummaryPk();
        this.createdAt = e.getCreatedAt().getTime();
    }
}
